using Avalonia.Controls;
using Avalonia.Interactivity;
using System;

namespace SampleAvaloniaMvvm.Views
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            WindowStartupLocation = WindowStartupLocation.CenterScreen;


            this.Loaded += MainWindow_Loaded;
        }

        private void MainWindow_Loaded(object? sender, RoutedEventArgs e)
        {
            the_combo.SelectedIndex = 0;
            btn_count.Command?.Execute(null);
        }
    }
}